<template>
	<view>
		<!-- <back-nav message ='钱包' :back="back"></back-nav> -->
		

			<view class="package">
				<text>我的余额（元）</text>
				<view class="num">
					<!-- <view class="icon" @click="toPackageCode">
						<image src="../../static/codeIcon.png" mode=""></image>
					</view> -->
					<text>{{totalAmount}}</text>
					
				</view>
				<view class="detail" @click="toMoneyDetail">
					余额明细
				</view>
			</view>
		

		<view class="chongzhi" @click="toTiXian">
			提现
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				totalAmount:12,
			};
		},
		methods:{
			// back() {
			// 	uni.navigateBack({
			// 		delta: 1
			// 	})
			// },			
			toTiXian(){
				
			},			
			toMoneyDetail(){
				uni.navigateTo({
					url:"/subpkg/MoneyDetails/MoneyDetails"
				})
			}
		},
		onShow() {
			// this.api.get("api/auth/getVipScore").then(res=>{
			// 	this.totalAmount = res.data.balance
			// })
		}
	}
</script>

<style lang="scss">

	.package{
		width: 750rpx;
		height: 300rpx;
		background-color: white;
		margin-top: 10rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-around;
		font-size: 20rpx;
		color: rgba(128, 128, 128, 1);
		.num{
			font-size: 60rpx;
			font-weight: bold;
			color: #7ebbeb;
			position: relative;
			.icon{
				position: absolute;
				right: -100rpx;
				image{
					height: 60rpx;
					width: 60rpx;
				}
			}
			
		}
		.detail{
			width: 130rpx;
			height: 40rpx;
			border-radius: 40rpx;
			border: 1rpx rgba(204, 204, 204, 1) solid; 
			text-align: center;
			line-height: 40rpx;
		}
	}
	.chongzhi{
		width: 650rpx;
		height: 80rpx;
		background-color:#7ebbeb ;
		font-size: 30rpx;
		color: white;
		text-align: center;
		line-height: 80rpx;
		margin: 60rpx auto;
	}
</style>
